Skip to content

fix: correct logic for the WithInPlaceRestore and WithPlaceRestore options#211

Merged
nakagami merged 1 commit intonakagami:masterfrom
AnyCPU:fix/nbackup_options_1
Mar 11, 2026
Merged

fix: correct logic for the WithInPlaceRestore and WithPlaceRestore options#211
nakagami merged 1 commit intonakagami:masterfrom
AnyCPU:fix/nbackup_options_1

Conversation

@AnyCPU
Copy link
Contributor

@AnyCPU AnyCPU commented Mar 10, 2026

the WithInPlaceRestore option sets InPlaceRestore = false and
the WithPlaceRestore options sets InPlaceRestore = true.

corresponding boolean values are swapped relative to their function names.
this means calling WithInPlaceRestore() actually prevents the isc_spb_nbk_inplace flag from being sent to Firebird, which is the opposite of what callers expect.

FIX

update code and related test to use the correct function name for enabling in-place restore.

@nakagami nakagami merged commit aefe574 into nakagami:master Mar 11, 2026
4 checks passed
@AnyCPU AnyCPU deleted the fix/nbackup_options_1 branch March 11, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants